<?php

namespace catchAdmin\smstopic\tables\forms;


use app\common\model\Answer;
use app\common\model\PropagandaEducation;
use catcher\library\form\Form;

class SmsTopic extends Form
{
    protected $table = 'smstopic';

    public function fields(): array
    {
        // TODO: Implement fields() method.
        return [
            self::input('title', '模板主题')->required()->maxlength(100)->col(12),
            self::select('model', '对应模型')->options(
                self::options()
                    ->add('公共', "Common")
                    ->add('宣教', "PropagandaEducation")
                    ->add('随访/问卷', "Project")
                    ->add('复诊提醒', "Answers")
                    ->render()
            )->style(['width' => '40%']),
        ];
    }
}